<template>
  <div class="headr">
    <keep-alive>  
      <router-view></router-view>  
    </keep-alive>
    <div class="tab">
      <div class="tab-item tab1">
        <router-link to="/index/all">拼货</router-link>
      </div>
      <div class="tab-item tab2">
        <router-link to="/index/classfiy">分类</router-link>
      </div>
      <div class="tab-item tab3">
        <router-link to="/index/car">拿货车</router-link>
      </div>
      <div class="tab-item tab4">
        <router-link to="/index/search">搜索</router-link>
      </div>
      <div class="tab-item tab5">
        <router-link to="/index/my">我的</router-link>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'index',
    created: function () {
      
    },
    methods: {
      
    }
  }
</script>

<style scoped>
  .headr{
    padding-bottom: 51px;
    overflow: hidden;
    background-color: #ffffff;
  }
  .tab{
    border-top:1px solid #e0e0e0;
    background-color:#fff;
    overflow:hidden;
    position:fixed;
    bottom:0;
    width: 100%;
    max-width: 720px;
    z-index:1000;
  }
  .tab-item{
    overflow:hidden;
    float:left;
    width:20%;
    text-align:center;
    font-size:12px;
    color:#555;
  }
  .tab-item a{
    display: block;
    color: #808080;
    padding: 4px 0;
    font-size: 1rem;
  }
  .tab-item a:before{
    content: '';
    display: block;
    margin: 0 auto;
    width: 24px;
    height: 24px;
    background-size: 24px 24px;
  }
 .tab .tab-item a.active{
    color: #e03e3f;
  }

  .tab1 a:before{
    background: url('../../assets/footer/tab_quick_normal.png') no-repeat;
    background-size: 24px 24px;
  }
  .tab1 a.active:before{
    background: url('../../assets/footer/tab_quick_select.png') no-repeat;
    background-size: 24px 24px;
  }

  .tab2 a:before{
    background: url('../../assets/footer/classify.png') no-repeat;
    background-size: 24px 24px;
  }
  .tab2 a.active:before{
    background: url('../../assets/footer/classify_selected.png') no-repeat;
    background-size: 24px 24px;
  }

  .tab3 a:before{
    background: url('../../assets/footer/gouwuche.png') no-repeat;
    background-size: 24px 24px;
  }
  .tab3 a.active:before{
    background: url('../../assets/footer/gouwuche1.png') no-repeat;
    background-size: 24px 24px;
  }

  .tab4 a:before{
    background: url('../../assets/footer/search.png') no-repeat;
    background-size: 24px 24px;
  }
  .tab4 a.active:before{
    background: url('../../assets/footer/search1.png') no-repeat;
    background-size: 24px 24px;
  }

  .tab5 a:before{
    background: url('../../assets/footer/tab_me_normal.png') no-repeat;
    background-size: 24px 24px;
  }
  .tab5 a.active:before{
    background: url('../../assets/footer/tab_me_select.png') no-repeat;
    background-size: 24px 24px;
  }
</style>
